home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows 3-Pak 2 - Disc 2
/
Infomagic - Windows 3-Pak Volume 2 (Disc 2 of 3).iso
/
Chat---IRC
/
TURBOIRC.ZIP
/
data1.cab
/
TurboIRC_Scripts
/
ATEMPBAN.txt
< prev
next >
Wrap
Text File
|
1999-05-05
|
1KB
|
55 lines
// TempBan TurboIRC Script
// Copyright ⌐ Chourdakis Michael , 1998
// Syntax : /tempban <channel> <nick|mask> [kickreason]
// This example
// Bans the given mask based on your
// preferences from a channel
// And removes the ban after 1 minute
// If you supply a nick instead of mask
// TurboIRC will get the mask from the internal structures
// If the mask cannot be found
// It will ban just the nick
// Load it : /_alias /TEMPBAN 0 0 ?.\demos\tempban.txt
if (strncmp("$2","*",1) == 0)
goto BanRelease
endif
string ID = ""
string Dom = ""
string Msk = ""
if (FindStringPos("$2","!")==-1)
// this is a user
ID = GetUserIdent("$2")
Dom = GetUserDomain("$2")
Msk = sprintf("%s!%s@%s","$2",ID,Dom)
else
ID = "--found--"
Msk = "$2"
endif
if (ID=="")
/mode $1 +b $2!*@*
/kick $1 $2 $3*
/firescript ATEMPBAN 60000 $0 $1 *$2 $3
else
/mode $1 +b %DefaultBanFromMask("%Msk%")%
/kick $1 %NickFromMask("%Msk%")% $3*
/firescript ATEMPBAN 20000 $0 $1 *%Msk% $3
endif
return
:BanRelease
// release the ban
string SB = "$2" + 1
if (FindStringPos("$2","!")==-1)
/mode $1 -b %SB%
else
/mode $1 -b %DefaultBanFromMask("%SB%")%
endif